/*
Contains:
	procs derived from /obj/item
	actual item declarations for equipment
*/

armor
	parent_type = /obj/item

	icon = 'armor.dmi'

	LeftClick(mob/clicker, loc, control, params)

		if(clicker.BODY == src)
			unequip_from(clicker)
			return

		else if(clicker.BODY != null && clicker.BODY != src)
			var/book/b = clicker.BODY
			b.suffix=null
			b.overlays = new/list()

		equip_to(clicker)

	equip_to(mob/reader)
		. = ..(reader)
		if(.)
			reader.BODY = src

	unequip_from(mob/reader)
		..(reader)
		reader.BODY = null

	is_equipped(mob/person)
		return person.BODY == src

	//item declarations
	Robe
		icon_state="Robe"
		ac_boost = 1

	Leather_Cloak
		icon_state="Leather Cloak"
		ac_boost = 2
		desc = "Everyone can wear this!"

	Windy_Cape
		icon_state="Cape"
		ac_boost = 2
		affinity = WIND|50

	Strong_Armor
		ac_boost = 3
		stat_boost = POWER|40

	Holy_Armor
		ac_boost = 17
		restriction = ONLY_LIGHT

	Epic_Armor
		icon_state = "Cape"
		ac_boost = 10
		restriction = MAGICAL
		desc = "Only Magical Monks can wear this!"

